package com.tiny.web.service;

import com.tiny.web.dto.ResultTypeDTO;
import com.tiny.web.modal.Topic;
import com.tiny.web.modal.TopicFollow;
import com.tiny.web.modal.User;

import java.util.List;

public interface TopicService {
    List<Topic> listAllTopic();
    List<Topic> listRelatedTopics(int id);
    List<User> listAllFollowedTopic(Integer id);
    ResultTypeDTO followTopic(TopicFollow topicFollow);
    ResultTypeDTO unFollowTopic(TopicFollow topicFollow);
    ResultTypeDTO saveOrUpdate(TopicFollow topicFollow);


}
